<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="renderer" content="webkit">
<meta name="keywords" content="">
<meta name="description" content="">
<link href="css/bootstrap1.min.css" rel="stylesheet">
<link href="css/bootstrap1.min.css">
<link href="css/font-awesome.min.css"  rel="stylesheet">
<link href="css/animate.min.css" rel="stylesheet">
<link href="css/style.min_EDT.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/master.css">
<link rel="stylesheet" type="text/css" href="css/plugins/iCheck/custom.css">
<link rel="stylesheet" type="text/css" href="js/plugins/layer/skin/layer.css">
<title>代理设置</title>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>代理设置</h5>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-12">
                            <form class="form-horizontal">
                                <div class="row">
                                    <div class="col-sm-12">
                                        <div class="col-sm-4">
                                            <div class="input-group" style="width: 100%;">
                                                <input class="form-control" placeholder="" type="text" value="请输入用户名..." >
                                            </div>
                                        </div>
                                        <div class="col-sm-4">
                                            <button type="submit" class="btn btn-primary m-r"><i class="fa fa-search"></i> 搜索</button>
                                            <a href="AgentSettingRecords.jsp" class="btn-primary btn"><i class="fa fa-file-text-o"></i> 设置记录</a>
                                        </div>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                    <div class="row m-t-lg">
                        <div class="col-sm-12">
                            <div class="table-responsive">
                                <table class="table table-striped table-hover" id="ListTB">
                                    <thead>
                                        <tr>
                                            <th>编号/全选<input type="checkbox" id="checkAll" onclick="isCheckAll()" /></th>
                                            <th>用户名</th>
                                            <th>姓名</th>
                                            <th>权限 <i class="fa fa-sort-amount-asc"></i></th>
                                            <th>管理<i class="fa fa-sort-amount-asc"></i></th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                    	<c:forEach  items="" var="" varStatus="">
                                        <tr>
                                            <td>1<input type="checkbox" id="ids" name="ids" class="idBox" value="${news.n_id }"/></td>
                                            <td>夺</td>
                                            <td>初审</td>
                                            <td><button class="btn btn-primary settings-btn"><i class="fa fa-cog"></i> 设置</button> &nbsp;
                                            <button class="btn btn-primary settings-btn"> 删除</button></td>
                                        </tr>
                                        </c:forEach>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="js/jquery1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/plugins/iCheck/icheck.min.js"></script>
<script src="js/plugins/datapicker/bootstrap-datepicker.js"></script>
<script src="js/plugins/layer/layer.min.js"></script>
<script>
    $(document).ready(function(){
        $('.settings-btn').on('click', function(){
            layer.open({
                title: '更改代理商类型',
                type: 1,
                skin: 'layui-layer-rim', //加上边框
                area: ['260px', '220px'],
                shadeClose: true, //点击遮罩关闭
                content: '<div class="form-box"> <div class="input-group"> <label class="checkbox-inline i-checks"> <input type="radio" class="i-checks" name="IDs" style="position: relative;top:2px;margin-right:5px;">普通代理商（当前）</label></div> <div class="input-group m-t-xs"> <label class="checkbox-inline i-checks"> <input type="radio" class="i-checks" name="IDs" style="position: relative;top:2px;margin-right:5px;">高级代理 </label> </div> <div class="col-sm-12 m-t text-center"> <button class="btn btn-primary " id="BtnSave" name="BtnSave" type="button"><i class="fa fa-floppy-o"></i> 保存</button> </div> </div>'
            });
        });
        $(".i-checks").iCheck({
            checkboxClass:"icheckbox_square-green",
            radioClass:"iradio_square-green"
        });
    });
</script>
</body>
</html>